package com.zhiche.lisa.lspm.dao.mapper.trailer;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zhiche.lisa.lspm.dao.model.trailer.TrailerLicense;
import com.zhiche.lisa.lspm.dao.model.trailer.bo.TrailerLicenseBO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 挂车证照 Mapper 接口
 * </p>
 *
 * @author qichao
 * @since 2018-05-23
 */
@Component
public interface TrailerLicenseMapper extends BaseMapper<TrailerLicense> {
    /**
     * 根据证照类型获取 挂车证照信息
     * @param trailerId
     * @param licenseTypeCode
     * @param subjectType
     * @param attachType
     * @return
     */
     TrailerLicenseBO selectByLicenseType(@Param("trailerId") Integer trailerId, @Param("licenseTypeCode") String licenseTypeCode, @Param("subjectType") String subjectType, @Param("attachType") String attachType);

    /**
     * 批量添加
     * @param licenseList
     */
    void batchInsert(@Param("licenseList") List<TrailerLicense> licenseList);
}
